<template>
  <Layout :class="prefixCls">
    <Layout :class="[layoutClass, `${prefixCls}-out`]">
      <LayoutSideBar />
    </Layout>
  </Layout>
</template>

<script lang="ts" setup>
import {computed} from 'vue'
import {Layout} from 'ant-design-vue'
import {useDesign} from '@/hooks/web/useDesign'
import { useMenuSetting } from '@/hooks/setting/useMenuSetting'
import LayoutSideBar from './sider/index.vue'

const { prefixCls } = useDesign('default-layout')

const layoutClass = computed(() => {
  const cls = ['ant-layout']
  cls.push('ant-layout-has-sider')
  return cls
})

</script>

<style lang="less">
  @prefix-cls: ~'@{namespace}-default-layout';
  .@{prefix-cls} {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-height: 100%;
    background-color: @content-bg;

    /*> .ant-layout {
      min-height: 100%;
    }

    &-main {
      width: 100%;
      margin-left: 1px;
    }*/
  }

  /*.@{prefix-cls}-out {
    &.ant-layout-has-sider {
      .@{prefix-cls} {
        &-main {
          margin-left: 1px;
        }
      }
    }
  }*/
</style>
